package cn.huiyunche.base.service.enums;

public enum AttachCategoryEnumWaybill {

//	EXTRACT(10,"提车照片"),
//	SEND(20,"发车照片"),
//	DELIVERY(30,"交车照片"),
//	RECEIVE(40,"收车照片");

    RECEIPT(10, "提车照片"),
    SEND(20, "发车照片"),
    DELIVER(30, "交车照片"),
    RECEIVE(40, "收车照片"),
    INJURED(50, "带伤发运照片"),
    ACCIDENT(60, "事故照片");

    private final int value;
    private final String text;

    AttachCategoryEnumWaybill(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static AttachCategoryEnumWaybill getByValue(int value) {
        for (AttachCategoryEnumWaybill temp : AttachCategoryEnumWaybill.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
